# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-lxml
_pkgname=lxml
pkgver=4.6.2
pkgrel=2
pkgdesc='Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.'
url='https://pypi.org/project/lxml/#files'
arch=('x86_64' 'aarch64')
license=('BSD')
depends=('python2' 'libxslt')
makedepends=('python2-setuptools' 'python2-pygments' 'cython2' 'libxslt')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('0a99e3f3c95c409d3f336aa6fb7f21527cf75d00ef8b55731d8ae8ba1b90792812b4551cd0751e5296b0007dc6d448fe63990a487993229e26477f087e52e29d')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

